3.2.28 \(\int \frac {d+e x^2+f x^4+g x^6}{(a+b x^2+c x^4)^2} \, dx\) [128]

Optimal. Leaf size=449 \[ \frac {x \left (c \left (b^2 d-2 a (c d-a f)-\frac {a b (c e+a g)}{c}\right )+\left (b c (c d+a f)-a b^2 g-2 a c (c e-a g)\right ) x^2\right )}{2 a c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {\left (b (c d+a f)+\frac {a b^2 g}{c}-2 a (c e+3 a g)+\frac {b^2 c (c d-a f)-4 a c^2 (3 c d+a f)-a b^3 g+4 a b c (c e+2 a g)}{c \sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{2 \sqrt {2} a \sqrt {c} \left (b^2-4 a c\right ) \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\left (b (c d+a f)+\frac {a b^2 g}{c}-2 a (c e+3 a g)-\frac {b^2 c (c d-a f)-4 a c^2 (3 c d+a f)-a b^3 g+4 a b c (c e+2 a g)}{c \sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{2 \sqrt {2} a \sqrt {c} \left (b^2-4 a c\right ) \sqrt {b+\sqrt {b^2-4 a c}}} \]

[Out]

1/2*x*(c*(b^2*d-2*a*(-a*f+c*d)-a*b*(a*g+c*e)/c)+(b*c*(a*f+c*d)-a*b^2*g-2*a*c*(-a*g+c*e))*x^2)/a/c/(-4*a*c+b^2)
/(c*x^4+b*x^2+a)+1/4*arctan(x*2^(1/2)*c^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2))*(b*(a*f+c*d)+a*b^2*g/c-2*a*(3*a*g+
c*e)+(b^2*c*(-a*f+c*d)-4*a*c^2*(a*f+3*c*d)-a*b^3*g+4*a*b*c*(2*a*g+c*e))/c/(-4*a*c+b^2)^(1/2))/a/(-4*a*c+b^2)*2
^(1/2)/c^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2)+1/4*arctan(x*2^(1/2)*c^(1/2)/(b+(-4*a*c+b^2)^(1/2))^(1/2))*(b*(a*f
+c*d)+a*b^2*g/c-2*a*(3*a*g+c*e)+(-b^2*c*(-a*f+c*d)+4*a*c^2*(a*f+3*c*d)+a*b^3*g-4*a*b*c*(2*a*g+c*e))/c/(-4*a*c+
b^2)^(1/2))/a/(-4*a*c+b^2)*2^(1/2)/c^(1/2)/(b+(-4*a*c+b^2)^(1/2))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 1.96, antiderivative size = 449, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.094, Rules used = {1692, 1180, 211} \begin {gather*} \frac {\text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right ) \left (\frac {a b^2 g}{c}+\frac {-a b^3 g+b^2 c (c d-a f)+4 a b c (2 a g+c e)-4 a c^2 (a f+3 c d)}{c \sqrt {b^2-4 a c}}+b (a f+c d)-2 a (3 a g+c e)\right )}{2 \sqrt {2} a \sqrt {c} \left (b^2-4 a c\right ) \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {\sqrt {b^2-4 a c}+b}}\right ) \left (\frac {a b^2 g}{c}-\frac {-a b^3 g+b^2 c (c d-a f)+4 a b c (2 a g+c e)-4 a c^2 (a f+3 c d)}{c \sqrt {b^2-4 a c}}+b (a f+c d)-2 a (3 a g+c e)\right )}{2 \sqrt {2} a \sqrt {c} \left (b^2-4 a c\right ) \sqrt {\sqrt {b^2-4 a c}+b}}+\frac {x \left (x^2 \left (-a b^2 g+b c (a f+c d)-2 a c (c e-a g)\right )+c \left (-\frac {a b (a g+c e)}{c}-2 a (c d-a f)+b^2 d\right )\right )}{2 a c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(d + e*x^2 + f*x^4 + g*x^6)/(a + b*x^2 + c*x^4)^2,x]

[Out]

(x*(c*(b^2*d - 2*a*(c*d - a*f) - (a*b*(c*e + a*g))/c) + (b*c*(c*d + a*f) - a*b^2*g - 2*a*c*(c*e - a*g))*x^2))/
(2*a*c*(b^2 - 4*a*c)*(a + b*x^2 + c*x^4)) + ((b*(c*d + a*f) + (a*b^2*g)/c - 2*a*(c*e + 3*a*g) + (b^2*c*(c*d -
a*f) - 4*a*c^2*(3*c*d + a*f) - a*b^3*g + 4*a*b*c*(c*e + 2*a*g))/(c*Sqrt[b^2 - 4*a*c]))*ArcTan[(Sqrt[2]*Sqrt[c]
*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(2*Sqrt[2]*a*Sqrt[c]*(b^2 - 4*a*c)*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + ((b*(c*d +
 a*f) + (a*b^2*g)/c - 2*a*(c*e + 3*a*g) - (b^2*c*(c*d - a*f) - 4*a*c^2*(3*c*d + a*f) - a*b^3*g + 4*a*b*c*(c*e
+ 2*a*g))/(c*Sqrt[b^2 - 4*a*c]))*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(2*Sqrt[2]*a*Sqrt[c]
*(b^2 - 4*a*c)*Sqrt[b + Sqrt[b^2 - 4*a*c]])

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 1180

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 1692

Int[(Pq_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> With[{d = Coeff[PolynomialRemainder[Pq, a +
b*x^2 + c*x^4, x], x, 0], e = Coeff[PolynomialRemainder[Pq, a + b*x^2 + c*x^4, x], x, 2]}, Simp[x*(a + b*x^2 +
 c*x^4)^(p + 1)*((a*b*e - d*(b^2 - 2*a*c) - c*(b*d - 2*a*e)*x^2)/(2*a*(p + 1)*(b^2 - 4*a*c))), x] + Dist[1/(2*
a*(p + 1)*(b^2 - 4*a*c)), Int[(a + b*x^2 + c*x^4)^(p + 1)*ExpandToSum[2*a*(p + 1)*(b^2 - 4*a*c)*PolynomialQuot
ient[Pq, a + b*x^2 + c*x^4, x] + b^2*d*(2*p + 3) - 2*a*c*d*(4*p + 5) - a*b*e + c*(4*p + 7)*(b*d - 2*a*e)*x^2,
x], x], x]] /; FreeQ[{a, b, c}, x] && PolyQ[Pq, x^2] && Expon[Pq, x^2] > 1 && NeQ[b^2 - 4*a*c, 0] && LtQ[p, -1
]

Rubi steps

\begin {align*} \int \frac {d+e x^2+f x^4+g x^6}{\left (a+b x^2+c x^4\right )^2} \, dx &=\frac {x \left (c \left (b^2 d-2 a (c d-a f)-\frac {a b (c e+a g)}{c}\right )+\left (b c (c d+a f)-a b^2 g-2 a c (c e-a g)\right ) x^2\right )}{2 a c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {\int \frac {-b^2 d+2 a (3 c d+a f)-\frac {a b (c e+a g)}{c}+\left (-b (c d+a f)-\frac {a b^2 g}{c}+2 a (c e+3 a g)\right ) x^2}{a+b x^2+c x^4} \, dx}{2 a \left (b^2-4 a c\right )}\\ &=\frac {x \left (c \left (b^2 d-2 a (c d-a f)-\frac {a b (c e+a g)}{c}\right )+\left (b c (c d+a f)-a b^2 g-2 a c (c e-a g)\right ) x^2\right )}{2 a c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {\left (b (c d+a f)+\frac {a b^2 g}{c}-2 a (c e+3 a g)-\frac {b^2 c (c d-a f)-4 a c^2 (3 c d+a f)-a b^3 g+4 a b c (c e+2 a g)}{c \sqrt {b^2-4 a c}}\right ) \int \frac {1}{\frac {b}{2}+\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{4 a \left (b^2-4 a c\right )}+\frac {\left (b (c d+a f)+\frac {a b^2 g}{c}-2 a (c e+3 a g)+\frac {b^2 c (c d-a f)-4 a c^2 (3 c d+a f)-a b^3 g+4 a b c (c e+2 a g)}{c \sqrt {b^2-4 a c}}\right ) \int \frac {1}{\frac {b}{2}-\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{4 a \left (b^2-4 a c\right )}\\ &=\frac {x \left (c \left (b^2 d-2 a (c d-a f)-\frac {a b (c e+a g)}{c}\right )+\left (b c (c d+a f)-a b^2 g-2 a c (c e-a g)\right ) x^2\right )}{2 a c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {\left (b (c d+a f)+\frac {a b^2 g}{c}-2 a (c e+3 a g)+\frac {b^2 c (c d-a f)-4 a c^2 (3 c d+a f)-a b^3 g+4 a b c (c e+2 a g)}{c \sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{2 \sqrt {2} a \sqrt {c} \left (b^2-4 a c\right ) \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\left (b (c d+a f)+\frac {a b^2 g}{c}-2 a (c e+3 a g)-\frac {b^2 c (c d-a f)-4 a c^2 (3 c d+a f)-a b^3 g+4 a b c (c e+2 a g)}{c \sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{2 \sqrt {2} a \sqrt {c} \left (b^2-4 a c\right ) \sqrt {b+\sqrt {b^2-4 a c}}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 1.02, size = 512, normalized size = 1.14 \begin {gather*} \frac {\frac {2 \sqrt {c} x \left (b \left (-a c e-a^2 g+c^2 d x^2+a c f x^2\right )+b^2 \left (c d-a g x^2\right )+2 a c \left (-c \left (d+e x^2\right )+a \left (f+g x^2\right )\right )\right )}{\left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {\sqrt {2} \left (-a b^3 g+b c \left (c \sqrt {b^2-4 a c} d+4 a c e+a \sqrt {b^2-4 a c} f+8 a^2 g\right )+b^2 \left (c^2 d-a c f+a \sqrt {b^2-4 a c} g\right )-2 a c \left (6 c^2 d+c \sqrt {b^2-4 a c} e+2 a c f+3 a \sqrt {b^2-4 a c} g\right )\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\left (b^2-4 a c\right )^{3/2} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\sqrt {2} \left (a b^3 g+b c \left (c \sqrt {b^2-4 a c} d-4 a c e+a \sqrt {b^2-4 a c} f-8 a^2 g\right )+2 a c \left (6 c^2 d-c \sqrt {b^2-4 a c} e+2 a c f-3 a \sqrt {b^2-4 a c} g\right )+b^2 \left (-c^2 d+a c f+a \sqrt {b^2-4 a c} g\right )\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\left (b^2-4 a c\right )^{3/2} \sqrt {b+\sqrt {b^2-4 a c}}}}{4 a c^{3/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(d + e*x^2 + f*x^4 + g*x^6)/(a + b*x^2 + c*x^4)^2,x]

[Out]

((2*Sqrt[c]*x*(b*(-(a*c*e) - a^2*g + c^2*d*x^2 + a*c*f*x^2) + b^2*(c*d - a*g*x^2) + 2*a*c*(-(c*(d + e*x^2)) +
a*(f + g*x^2))))/((b^2 - 4*a*c)*(a + b*x^2 + c*x^4)) + (Sqrt[2]*(-(a*b^3*g) + b*c*(c*Sqrt[b^2 - 4*a*c]*d + 4*a
*c*e + a*Sqrt[b^2 - 4*a*c]*f + 8*a^2*g) + b^2*(c^2*d - a*c*f + a*Sqrt[b^2 - 4*a*c]*g) - 2*a*c*(6*c^2*d + c*Sqr
t[b^2 - 4*a*c]*e + 2*a*c*f + 3*a*Sqrt[b^2 - 4*a*c]*g))*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]]
)/((b^2 - 4*a*c)^(3/2)*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + (Sqrt[2]*(a*b^3*g + b*c*(c*Sqrt[b^2 - 4*a*c]*d - 4*a*c*e
 + a*Sqrt[b^2 - 4*a*c]*f - 8*a^2*g) + 2*a*c*(6*c^2*d - c*Sqrt[b^2 - 4*a*c]*e + 2*a*c*f - 3*a*Sqrt[b^2 - 4*a*c]
*g) + b^2*(-(c^2*d) + a*c*f + a*Sqrt[b^2 - 4*a*c]*g))*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])
/((b^2 - 4*a*c)^(3/2)*Sqrt[b + Sqrt[b^2 - 4*a*c]]))/(4*a*c^(3/2))

________________________________________________________________________________________

Maple [A]
time = 0.08, size = 543, normalized size = 1.21

method result size
risch \(\frac {-\frac {\left (2 a^{2} c g -a \,b^{2} g +a b c f -2 a \,c^{2} e +b \,c^{2} d \right ) x^{3}}{2 a \left (4 a c -b^{2}\right ) c}+\frac {\left (a^{2} b g -2 a^{2} c f +a b c e +2 a \,c^{2} d -b^{2} c d \right ) x}{2 a c \left (4 a c -b^{2}\right )}}{c \,x^{4}+b \,x^{2}+a}+\frac {\munderset {\textit {\_R} =\RootOf \left (c \,\textit {\_Z}^{4}+\textit {\_Z}^{2} b +a \right )}{\sum }\frac {\left (\frac {\left (6 a^{2} c g -a \,b^{2} g -a b c f +2 a \,c^{2} e -b \,c^{2} d \right ) \textit {\_R}^{2}}{4 a c -b^{2}}-\frac {a^{2} b g -2 a^{2} c f +a b c e -6 a \,c^{2} d +b^{2} c d}{4 a c -b^{2}}\right ) \ln \left (x -\textit {\_R} \right )}{2 c \,\textit {\_R}^{3}+\textit {\_R} b}}{4 a c}\) \(269\)
default \(\frac {-\frac {\left (2 a^{2} c g -a \,b^{2} g +a b c f -2 a \,c^{2} e +b \,c^{2} d \right ) x^{3}}{2 a \left (4 a c -b^{2}\right ) c}+\frac {\left (a^{2} b g -2 a^{2} c f +a b c e +2 a \,c^{2} d -b^{2} c d \right ) x}{2 a c \left (4 a c -b^{2}\right )}}{c \,x^{4}+b \,x^{2}+a}+\frac {-\frac {\left (6 a^{2} c g \sqrt {-4 a c +b^{2}}-a \,b^{2} g \sqrt {-4 a c +b^{2}}-\sqrt {-4 a c +b^{2}}\, a b c f +2 a \,c^{2} e \sqrt {-4 a c +b^{2}}-b \,c^{2} d \sqrt {-4 a c +b^{2}}-8 a^{2} b c g +4 a^{2} c^{2} f +a \,b^{3} g +a \,b^{2} c f -4 a b \,c^{2} e +12 c^{3} a d -b^{2} c^{2} d \right ) \sqrt {2}\, \arctanh \left (\frac {c x \sqrt {2}}{\sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{4 c \sqrt {-4 a c +b^{2}}\, \sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}+\frac {\left (6 a^{2} c g \sqrt {-4 a c +b^{2}}-a \,b^{2} g \sqrt {-4 a c +b^{2}}-\sqrt {-4 a c +b^{2}}\, a b c f +2 a \,c^{2} e \sqrt {-4 a c +b^{2}}-b \,c^{2} d \sqrt {-4 a c +b^{2}}+8 a^{2} b c g -4 a^{2} c^{2} f -a \,b^{3} g -a \,b^{2} c f +4 a b \,c^{2} e -12 c^{3} a d +b^{2} c^{2} d \right ) \sqrt {2}\, \arctan \left (\frac {c x \sqrt {2}}{\sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{4 c \sqrt {-4 a c +b^{2}}\, \sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}}{a \left (4 a c -b^{2}\right )}\) \(543\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((g*x^6+f*x^4+e*x^2+d)/(c*x^4+b*x^2+a)^2,x,method=_RETURNVERBOSE)

[Out]

(-1/2/a*(2*a^2*c*g-a*b^2*g+a*b*c*f-2*a*c^2*e+b*c^2*d)/(4*a*c-b^2)/c*x^3+1/2*(a^2*b*g-2*a^2*c*f+a*b*c*e+2*a*c^2
*d-b^2*c*d)/a/c/(4*a*c-b^2)*x)/(c*x^4+b*x^2+a)+2/a/(4*a*c-b^2)*(-1/8*(6*a^2*c*g*(-4*a*c+b^2)^(1/2)-a*b^2*g*(-4
*a*c+b^2)^(1/2)-(-4*a*c+b^2)^(1/2)*a*b*c*f+2*a*c^2*e*(-4*a*c+b^2)^(1/2)-b*c^2*d*(-4*a*c+b^2)^(1/2)-8*a^2*b*c*g
+4*a^2*c^2*f+a*b^3*g+a*b^2*c*f-4*a*b*c^2*e+12*c^3*a*d-b^2*c^2*d)/c/(-4*a*c+b^2)^(1/2)*2^(1/2)/((-b+(-4*a*c+b^2
)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))+1/8*(6*a^2*c*g*(-4*a*c+b^2)^(1/2)-a*b
^2*g*(-4*a*c+b^2)^(1/2)-(-4*a*c+b^2)^(1/2)*a*b*c*f+2*a*c^2*e*(-4*a*c+b^2)^(1/2)-b*c^2*d*(-4*a*c+b^2)^(1/2)+8*a
^2*b*c*g-4*a^2*c^2*f-a*b^3*g-a*b^2*c*f+4*a*b*c^2*e-12*c^3*a*d+b^2*c^2*d)/c/(-4*a*c+b^2)^(1/2)*2^(1/2)/((b+(-4*
a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)))

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x^6+f*x^4+e*x^2+d)/(c*x^4+b*x^2+a)^2,x, algorithm="maxima")

[Out]

1/2*((b*c^2*d + a*b*c*f - 2*a*c^2*e - (a*b^2 - 2*a^2*c)*g)*x^3 + (2*a^2*c*f - a^2*b*g - a*b*c*e + (b^2*c - 2*a
*c^2)*d)*x)/(a^2*b^2*c - 4*a^3*c^2 + (a*b^2*c^2 - 4*a^2*c^3)*x^4 + (a*b^3*c - 4*a^2*b*c^2)*x^2) - 1/2*integrat
e((2*a^2*c*f - a^2*b*g - a*b*c*e - (b*c^2*d + a*b*c*f - 2*a*c^2*e + (a*b^2 - 6*a^2*c)*g)*x^2 - (b^2*c - 6*a*c^
2)*d)/(c*x^4 + b*x^2 + a), x)/(a*b^2*c - 4*a^2*c^2)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 19375 vs. \(2 (408) = 816\).
time = 141.88, size = 19375, normalized size = 43.15 \begin {gather*} \text {too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x^6+f*x^4+e*x^2+d)/(c*x^4+b*x^2+a)^2,x, algorithm="fricas")

[Out]

1/4*(2*(b*c^2*d - 2*a*c^2*e + a*b*c*f - (a*b^2 - 2*a^2*c)*g)*x^3 - sqrt(1/2)*(a^2*b^2*c - 4*a^3*c^2 + (a*b^2*c
^2 - 4*a^2*c^3)*x^4 + (a*b^3*c - 4*a^2*b*c^2)*x^2)*sqrt(-((b^5*c^3 - 15*a*b^3*c^4 + 60*a^2*b*c^5)*d^2 + 2*(a*b
^4*c^3 - 6*a^2*b^2*c^4 - 24*a^3*c^5)*d*e + (a^2*b^3*c^3 + 12*a^3*b*c^4)*e^2 + (a^3*b^3*c^2 + 12*a^4*b*c^3)*f^2
 + (a^3*b^5 - 15*a^4*b^3*c + 60*a^5*b*c^2)*g^2 - 2*((3*a^2*b^3*c^3 - 28*a^3*b*c^4)*d + 2*(3*a^3*b^2*c^3 + 4*a^
4*c^4)*e)*f + 2*(2*(5*a^3*b^2*c^3 - 36*a^4*c^4)*d - (3*a^3*b^3*c^2 - 28*a^4*b*c^3)*e + (a^3*b^4*c - 6*a^4*b^2*
c^2 - 24*a^5*c^3)*f)*g + (a^3*b^6*c^3 - 12*a^4*b^4*c^4 + 48*a^5*b^2*c^5 - 64*a^6*c^6)*sqrt((4*a^3*b*c^6*d*e^3
+ a^4*c^6*e^4 + 12*a^5*c^5*d*f^3 + a^6*c^4*f^4 + (b^4*c^6 - 18*a*b^2*c^7 + 81*a^2*c^8)*d^4 + 4*(a*b^3*c^6 - 9*
a^2*b*c^7)*d^3*e + 6*(a^2*b^2*c^6 - 3*a^3*c^7)*d^2*e^2 + (a^6*b^4 - 18*a^7*b^2*c + 81*a^8*c^2)*g^4 - 4*(3*(a^6
*b^2*c^2 - 9*a^7*c^3)*e - (a^6*b^3*c - 9*a^7*b*c^2)*f)*g^3 - 2*(2*a^4*b*c^5*d*e + a^5*c^5*e^2 + (a^3*b^2*c^5 -
 27*a^4*c^ ...

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x**6+f*x**4+e*x**2+d)/(c*x**4+b*x**2+a)**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 8913 vs. \(2 (414) = 828\).
time = 6.92, size = 8913, normalized size = 19.85 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x^6+f*x^4+e*x^2+d)/(c*x^4+b*x^2+a)^2,x, algorithm="giac")

[Out]

1/2*(b*c^2*d*x^3 + a*b*c*f*x^3 - a*b^2*g*x^3 + 2*a^2*c*g*x^3 - 2*a*c^2*x^3*e + b^2*c*d*x - 2*a*c^2*d*x + 2*a^2
*c*f*x - a^2*b*g*x - a*b*c*x*e)/((c*x^4 + b*x^2 + a)*(a*b^2*c - 4*a^2*c^2)) + 1/16*((2*b^3*c^4 - 8*a*b*c^5 - s
qrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*b^3*c^2 + 4*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt
(b^2 - 4*a*c)*c)*a*b*c^3 + 2*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*b^2*c^3 - sqrt(2)*sqrt(
b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*b*c^4 - 2*(b^2 - 4*a*c)*b*c^4)*(a*b^2*c - 4*a^2*c^2)^2*d + (2*a*b
^3*c^3 - 8*a^2*b*c^4 - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a*b^3*c + 4*sqrt(2)*sqrt(b^2
- 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^2*b*c^2 + 2*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*
c)*a*b^2*c^2 - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a*b*c^3 - 2*(b^2 - 4*a*c)*a*b*c^3)*(a
*b^2*c - 4*a^2*c^2)^2*f + (2*a*b^4*c^2 - 20*a^2*b^2*c^3 + 48*a^3*c^4 - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*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a^2*b^7*c^6
- 40*a^3*b^5*c^7 + 224*a^4*b^3*c^8 - 384*a^5*b*c^9 - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)
*a^2*b^7*c^4 + 20*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^3*b^5*c^5 + 2*sqrt(2)*sqrt(b^2 -
 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^2*b^6*c^5 - 112*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*
c)*c)*a^4*b^3*c^6 - 32*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^3*b^4*c^6 - sqrt(2)*sqrt(b^
2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^2*b^5*c^6 + 192*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4
*a*c)*c)*a^5*b*c^7 + 96*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^4*b^2*c^7 + 16*sqrt(2)*sqr
t(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^3*b^3*c^7 - 48*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2
- 4*a*c)*c)*a^4*b*c^8 - 2*(b^2 - 4*a*c)*a^2*b^5...

________________________________________________________________________________________

Mupad [B]
time = 5.82, size = 2500, normalized size = 5.57 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d + e*x^2 + f*x^4 + g*x^6)/(a + b*x^2 + c*x^4)^2,x)

[Out]

((x*(2*a*c^2*d - b^2*c*d + a^2*b*g - 2*a^2*c*f + a*b*c*e))/(2*a*c*(4*a*c - b^2)) - (x^3*(b*c^2*d - 2*a*c^2*e -
 a*b^2*g + 2*a^2*c*g + a*b*c*f))/(2*a*c*(4*a*c - b^2)))/(a + b*x^2 + c*x^4) - atan(((((6144*a^5*c^7*d + 2048*a
^6*c^6*f - 288*a^2*b^6*c^4*d + 1920*a^3*b^4*c^5*d - 5632*a^4*b^2*c^6*d + 16*a^2*b^7*c^3*e - 192*a^3*b^5*c^4*e
+ 768*a^4*b^3*c^5*e - 32*a^3*b^6*c^3*f + 384*a^4*b^4*c^4*f - 1536*a^5*b^2*c^5*f + 16*a^3*b^7*c^2*g - 192*a^4*b
^5*c^3*g + 768*a^5*b^3*c^4*g + 16*a*b^8*c^3*d - 1024*a^5*b*c^6*e - 1024*a^6*b*c^5*g)/(8*(64*a^5*c^4 - a^2*b^6*
c + 12*a^3*b^4*c^2 - 48*a^4*b^2*c^3)) - (x*((27*a*b^9*c^4*d^2 - a^3*b^11*g^2 - b^11*c^3*d^2 + 3840*a^5*b*c^8*d
^2 - 9*a*c^4*d^2*(-(4*a*c - b^2)^9)^(1/2) + 768*a^6*b*c^7*e^2 + 768*a^7*b*c^6*f^2 + 27*a^4*b^9*c*g^2 + 3840*a^
8*b*c^5*g^2 + 9*a^4*c*g^2*(-(4*a*c - b^2)^9)^(1/2) - 288*a^2*b^7*c^5*d^2 + 1504*a^3*b^5*c^6*d^2 - 3840*a^4*b^3
*c^7*d^2 - a^2*b^9*c^3*e^2 + 96*a^4*b^5*c^5*e^2 - 512*a^5*b^3*c^6*e^2 + a^2*c^3*e^2*(-(4*a*c - b^2)^9)^(1/2) +
 b^2*c^3*d^2*(-(4*a*c - b^2)^9)^(1/2) - a^3*b^9*c^2*f^2 + 96*a^5*b^5*c^4*f^2 - 512*a^6*b^3*c^5*f^2 - a^3*b^2*g
^2*(-(4*a*c - b^2)^9)^(1/2) - a^3*c^2*f^2*(-(4*a*c - b^2)^9)^(1/2) - 288*a^5*b^7*c^2*g^2 + 1504*a^6*b^5*c^3*g^
2 - 3840*a^7*b^3*c^4*g^2 - 3072*a^6*c^8*d*e - 9216*a^7*c^7*d*g - 1024*a^7*c^7*e*f - 3072*a^8*c^6*f*g - 2*a*b^1
0*c^3*d*e + 3584*a^6*b*c^7*d*f + 3584*a^7*b*c^6*e*g - 2*a^3*b^10*c*f*g + 36*a^2*b^8*c^4*d*e - 192*a^3*b^6*c^5*
d*e + 128*a^4*b^4*c^6*d*e + 1536*a^5*b^2*c^7*d*e + 6*a^2*b^9*c^3*d*f - 128*a^3*b^7*c^4*d*f + 960*a^4*b^5*c^5*d
*f - 3072*a^5*b^3*c^6*d*f - 6*a^2*c^3*d*f*(-(4*a*c - b^2)^9)^(1/2) - 20*a^3*b^8*c^3*d*g + 12*a^3*b^8*c^3*e*f +
 384*a^4*b^6*c^4*d*g - 128*a^4*b^6*c^4*e*f - 2688*a^5*b^4*c^5*d*g + 384*a^5*b^4*c^5*e*f + 8192*a^6*b^2*c^6*d*g
 + 6*a^3*b^9*c^2*e*g - 128*a^4*b^7*c^3*e*g + 960*a^5*b^5*c^4*e*g - 3072*a^6*b^3*c^5*e*g + 6*a^3*c^2*e*g*(-(4*a
*c - b^2)^9)^(1/2) + 36*a^4*b^8*c^2*f*g - 192*a^5*b^6*c^3*f*g + 128*a^6*b^4*c^4*f*g + 1536*a^7*b^2*c^5*f*g + 2
*a*b*c^3*d*e*(-(4*a*c - b^2)^9)^(1/2) - 2*a^3*b*c*f*g*(-(4*a*c - b^2)^9)^(1/2))/(32*(4096*a^9*c^9 + a^3*b^12*c
^3 - 24*a^4*b^10*c^4 + 240*a^5*b^8*c^5 - 1280*a^6*b^6*c^6 + 3840*a^7*b^4*c^7 - 6144*a^8*b^2*c^8)))^(1/2)*(1024
*a^5*b*c^6 - 16*a^2*b^7*c^3 + 192*a^3*b^5*c^4 - 768*a^4*b^3*c^5))/(2*(16*a^4*c^3 + a^2*b^4*c - 8*a^3*b^2*c^2))
)*((27*a*b^9*c^4*d^2 - a^3*b^11*g^2 - b^11*c^3*d^2 + 3840*a^5*b*c^8*d^2 - 9*a*c^4*d^2*(-(4*a*c - b^2)^9)^(1/2)
 + 768*a^6*b*c^7*e^2 + 768*a^7*b*c^6*f^2 + 27*a^4*b^9*c*g^2 + 3840*a^8*b*c^5*g^2 + 9*a^4*c*g^2*(-(4*a*c - b^2)
^9)^(1/2) - 288*a^2*b^7*c^5*d^2 + 1504*a^3*b^5*c^6*d^2 - 3840*a^4*b^3*c^7*d^2 - a^2*b^9*c^3*e^2 + 96*a^4*b^5*c
^5*e^2 - 512*a^5*b^3*c^6*e^2 + a^2*c^3*e^2*(-(4*a*c - b^2)^9)^(1/2) + b^2*c^3*d^2*(-(4*a*c - b^2)^9)^(1/2) - a
^3*b^9*c^2*f^2 + 96*a^5*b^5*c^4*f^2 - 512*a^6*b^3*c^5*f^2 - a^3*b^2*g^2*(-(4*a*c - b^2)^9)^(1/2) - a^3*c^2*f^2
*(-(4*a*c - b^2)^9)^(1/2) - 288*a^5*b^7*c^2*g^2 + 1504*a^6*b^5*c^3*g^2 - 3840*a^7*b^3*c^4*g^2 - 3072*a^6*c^8*d
*e - 9216*a^7*c^7*d*g - 1024*a^7*c^7*e*f - 3072*a^8*c^6*f*g - 2*a*b^10*c^3*d*e + 3584*a^6*b*c^7*d*f + 3584*a^7
*b*c^6*e*g - 2*a^3*b^10*c*f*g + 36*a^2*b^8*c^4*d*e - 192*a^3*b^6*c^5*d*e + 128*a^4*b^4*c^6*d*e + 1536*a^5*b^2*
c^7*d*e + 6*a^2*b^9*c^3*d*f - 128*a^3*b^7*c^4*d*f + 960*a^4*b^5*c^5*d*f - 3072*a^5*b^3*c^6*d*f - 6*a^2*c^3*d*f
*(-(4*a*c - b^2)^9)^(1/2) - 20*a^3*b^8*c^3*d*g + 12*a^3*b^8*c^3*e*f + 384*a^4*b^6*c^4*d*g - 128*a^4*b^6*c^4*e*
f - 2688*a^5*b^4*c^5*d*g + 384*a^5*b^4*c^5*e*f + 8192*a^6*b^2*c^6*d*g + 6*a^3*b^9*c^2*e*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2 + 3840*
a^8*b*c^5*g^2 + 9*a^4*c*g^2*(-(4*a*c - b^2)^9)^(1/2) - 288*a^2*b^7*c^5*d^2 + 1504*a^3*b^5*c^6*d^2 - 3840*a^4*b
^3*c^7*d^2 - a^2*b^9*c^3*e^2 + 96*a^4*b^5*c^5*e^2 - 512*a^5*b^3*c^6*e^2 + a^2*c^3*e^2*(-(4*a*c - b^2)^9)^(1/2)
 + b^2*c^3*d^2*(-(4*a*c - b^2)^9)^(1/2) - a^3*b^9*c^2*f^2 + 96*a^5*b^5*c^4*f^2 - 512*a^6*b^3*c^5*f^2 - a^3*b^2
*g^2*(-(4*a*c - b^2)^9)^(1/2) - a^3*c^2*f^2*(-(...

________________________________________________________________________________________